#pragma once

class KRenderD3D9;

class KRRenderWindowD3D9 : public VRRenderWindow,public VAllocator
{
public:
	inline KRRenderWindowD3D9(void* InWindowHandle, UINT SizeX, UINT SizeY, BOOL Fullscreen):m_hWnd(InWindowHandle),m_SizeX(SizeX),m_SizeY(SizeY),m_FullScreen(Fullscreen)
	{
		m_D3DViewport.X = m_D3DViewport.Y = 0;
		m_D3DViewport.Width = SizeX;
		m_D3DViewport.Height = SizeY;
		m_D3DViewport.MinZ = 0.0f;
		m_D3DViewport.MaxZ = 1.0f;
	}
	virtual ~KRRenderWindowD3D9(void)
	{
	}
	virtual void DeleteThis()
	{
		VDelete this;
	}
	virtual void Resize(UINT Width, UINT Height, BOOL FullScreen);

	void* m_hWnd;
	UINT m_SizeX;
	UINT m_SizeY;
	BOOL m_FullScreen;
	D3DVIEWPORT9 m_D3DViewport;
};

